import request from '@/utils/request';
// ----------------院区管理-----------------
// 院区类型列表
export const yardList = params => request({
    url: '/yard/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区类型添加
export const yardAdd = params => request({
    url: '/yard/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区类型编辑
export const yardUpdate = params => request({
    url: '/yard/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区类型状态更改
export const statusUpdate = params => request({
    url: '/yard/status/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区类型删除
export const yardDel = params => request({
    url: '/yard/del',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 下拉列表(院区名称)
export const yardPullList = params => request({
    url: '/yard/pull/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区所属的省市区
export const yardAreaList = params => request({
    url: '/yard/area/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区类型详情
export const yardDetail = params => request({
    url: '/yard/get',
    method: 'GET',
    params
});

// ----------------院区权限-----------------
// 院区权限列表
export const yardAuthList = params => request({
    url: '/business/patient/yardAuth/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区权限新增
export const yardAuthAdd = params => request({
    url: '/business/patient/yardAuth/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区权限更新
export const yardAuthUpdate = params => request({
    url: '/business/patient/yardAuth/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区权限删除
export const yardAuthDel = params => request({
    url: '/business/patient/yardAuth/del',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区权限详情
export const yardAuthGet = params => request({
    url: '/business/patient/yardAuth/get',
    method: 'GET',
    params
});
// 煎药小组
// 煎药小组列表
export const decoctingList = params => request({
    url: '/business/decocting/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 煎药小组新增
export const decoctingAdd = params => request({
    url: '/business/decocting/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 煎药小组更新
export const decoctingUpdate = params => request({
    url: '/business/decocting/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 煎药小组详情
export const decoctingGet = params => request({
    url: '/business/decocting/get',
    method: 'GET',
    params
});
// 煎药小组删除
export const decoctingDel = params => request({
    url: '/business/decocting/del',
    method: 'GET',
    params
});
